<!DOCTYPE html>
<html lang="en">

    <include file="Public:header" />
        <!-- Side menu -->
        <!-- 引用header.html -->
        <!-- /Side menu -->
       
        <!-- Main window -->
        <div class="main_container" id="users_page">

            <div class="row-fluid">

                <h2 class="heading">
               大师课堂管理
                </h2>
            </div> <!-- /row-fluid -->


            <!--此处往下为代码改写部分-->
            <div class="row-fluid">
                <div class="widget widget-padding span12">
                    <div class="widget-header">
                        <i class="icon-group"></i>
                        <h5>大师课堂列表</h5>
                        <div class="widget-buttons">
                            <!--<a href="#" data-title="Add User" data-toggle="modal" data-target="#example_modal"><i class="icon-plus"></i></a>-->
                            <a href="#" data-title="Collapse" data-collapsed="false" class="collapse"><i class="icon-chevron-up"></i></a>
                        </div>
                    </div>
                    <div class="widget-body table-responsive ">
                        <table id="users" class="table table-condensed table-striped table-bordered dataTable">
                            <thead>
                            <tr>
                                <th>序号</th>
                                <th>大师图片</th>
                                <th>大师课堂视频</th>
                                <th>大师介绍</th>
                                <th>大师课堂关注数量</th>
                                <th>大师课堂状态</th>
                                <th>操作</th>
                            </tr>
                            </thead>
                        <tbody>
                                 <volist name="mastercourse" id="vo">
                            <tr>
                            <td>{$key+1}</td>
                             <!-- <td><img src="../../../Public/Admin/photo/{$vo.photo}" width="80" alt="头像" title="{$vo.aliasname}"></td> -->
                             <td><img src="__PUBLIC__/Uploads/masterphoto/{$vo.master_picture}" width="40" alt="大师图片" ></td>
                            
                             <td>
                              <video width="80" height="150" controls autobuffer> 
                             <source src="__PUBLIC__/Uploads/masterphoto/{$vo.master_video}"> </source>
                                 </video>
                            
                             </td>

                             <td>{$vo.master_introduce}</td>
                             <td>{$vo.master_course_number}</td>
                              <td>
                                    <if condition="$vo.like eq '0'">已关注
                                    <else/>未关注
                                    </if>
                                </td>

                        <td>

                        <a href="{:U('MasterCourse/addmastercourse')}"> 增加</a>|
                        <a href="__URL__/editmastercourse/master_course_id/{$vo.master_course_id}">修改</a> |
                        <switch name="vo.like">
                        <case value="1"><a href="__URL__/like/master_course_id/{$vo.master_course_id}/like/{$vo.like}">已关注</a> |</case>
                        <default /><a href="__URL__/like/master_course_id/{$vo.master_course_id}/like/{$vo.like}">未关注</a> |
                        </switch>
                                             |
                        <a href="__URL__/delmastercourse/master_course_id/{$vo.master_course_id}" onclick="return confirm('你确定要删除吗？')"><i class="icon-trash"></i>删除</a>
                        </td>


                        </tr>
                        </volist>
                            </tbody>
                        </table>
                    </div> <!-- /widget-body -->
                </div> <!-- /widget -->
            </div> <!-- /row-fluid -->

        </div>
        <!-- /Main window -->

    </div><!--/.fluid-container-->
</div><!-- wrap ends-->
</body>
</html>